import request from '@/utils/request'


// 查询还车退保证金分页列表
export function queryPageList(params) {
  return request({
    url: '/returnCarDeposit/queryPageList', method: 'get', params
  })
}

// 查询还车退保证金列表
export function queryList(data) {
  return request({
    url: '/returnCarDeposit/queryList', method: 'post', data
  })
}

//获取还车退保证金详细信息
export function queryDetails(id) {
  return request({
    url: `/returnCarDeposit/${id}`, method: 'get',
  })
}

//获取还车退保证金未缴纳金额
export function queryWaitAmountById(data) {
  return request({
    url: `/returnCarDeposit/queryWaitAmountById`,
    method: 'post',
    data
  })
}


//获取还车退保证金自定义减免项
export function queryByOrderCarNo(val) {
  return request({
    url: `/returnCarDeposit/queryByOrderCarNo/?orderCarNo=${val}`,
    method: 'get',
  })
}

//提交还车退保证金信息
export function update(data) {
  return request({
    url: `/returnCarDeposit/update`,
    method: 'post',
    data
  })
}
